export const searchOrder = (array: number[], itemSearch: number): number | undefined => {
  let index;

  for (let i = 0; i < array.length; i++) {
    if (array[i] === itemSearch) {
      index = i;
      break;
    }
  }

  return index ?? undefined;
};
